package com.xzy.ec.service;

import com.xzy.ec.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2022-06-07
 */
public interface IOmsOrderService extends IService<OmsOrder> {
    List<OrderVOo> getList();

    boolean updataStatus(Integer oid, Integer state);

    String getDeliveryAddr(Integer oid);

    UserVO getUser(Integer oid);

    GoodSpecsVO getGoodSpecsVO(Integer oid);

    boolean placeOrder(Integer uid, Integer gid,Integer num);

    boolean isEnough(Integer gid,Integer num);

    boolean updateOrder(Integer oid, OrderVO orderVO);

    boolean deleteOrder(Integer oid);

    List<OrderVO> listByUid(Integer uid);

    OrderVOo getOrderVO(Integer oid);
}
